<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
class Homepage extends CI_Model{ 
	
	public $table = 'services';
	public $key_search = "indexx";
	
	
	function __construct(){ 
		parent::__construct(); 		
	} 	
	function get_indexcontent($id){
		if(empty($id))
			$id = 0;		
		$this->db->where($this->key_search,$id);
				
		$menu = $this->db->get($this->table);
		
		$data = $menu->result_array();
		return $data;
	}
} 
